var express = require('express');
var router = express.Router();

var file_ctrl = require('../controller/file-ctrl')

/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index', { title: 'Express' });
});

/**上传文件*/
router.post('/upload',file_ctrl.upload);

/**上传文件*/
router.post('/download',file_ctrl.download);

module.exports = router;
